﻿using System;

namespace StringBuilder
{
    class Program
    {
        static void Main(string[] args)
        {
            /**
             * StringBuilder 用于字符串加密
             */
            System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder("this is a string builder.", 200);
            Console.WriteLine("stringBuilder: {0}", stringBuilder);
            stringBuilder.AppendFormat("this is an append text.{0}", 123);
            Console.WriteLine("stringBuilder: {0}", stringBuilder);

            double d = 13.45;
            Console.WriteLine("{0,10:E}", d);
        }
    }
}
